package org.framework.lazy.cloud.network.heartbeat.protocol.token;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 授权信息
 */
@Data
public class AuthenticationToken {

    /**
     * 令牌key
     */
    @Schema(description = "令牌key", name = "appKey", example = "")
    private String appKey;

    /**
     * 令牌密钥
     */
    @Schema(description = "令牌密钥", name = "appSecret", example = "")
    private String appSecret;


    /**
     * 过期时间
     */
    @Schema(description = "过期时间", name = "expireInTime", example = "")
    private LocalDateTime expireInTime;

    /**
     * 被使用的客户端ID
     */
    @Schema(description = "被使用的客户端ID", name = "usedByClientId", example = "")
    private String usedByClientId;

}
